/*
 * Test.java
 *
 * Created on 2 oct. 2007, 19:54:51
 *
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.poxd.frisar;

import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.FlowLayout;
import java.awt.Stroke;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import javax.swing.BorderFactory;
import javax.swing.BoxLayout;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.SwingUtilities;
import org.poxd.frisar.ui.DefaultHeadComponent;
import org.poxd.frisar.ui.DefaultTailComponent;

/**
 *
 * @author pollux
 */
public class Test extends JFrame {

    private static final Stroke ROUNDED = new BasicStroke(3, BasicStroke.CAP_BUTT, BasicStroke.JOIN_ROUND);

    public Test()
    {
        setSize(400, 400);
        setLocationRelativeTo(null);
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        JPanel content = new JPanel();
        content.setLayout(new FlowLayout(FlowLayout.CENTER, 0, 5));
        Frisar f = new Frisar();
        DefaultTailComponent tc = new DefaultTailComponent(f);
        DefaultHeadComponent hc = new DefaultHeadComponent(f);
        content.setBorder(BorderFactory.createLineBorder(Color.BLUE));
        setLayout(new BoxLayout(this.getContentPane(), BoxLayout.X_AXIS));
        add(tc);
        add(hc);
        
    }

    

    /**
     * @param args the command line arguments
     */
    public

    static void main(String[] args)
    {
        SwingUtilities.invokeLater(new Runnable() {

                    public void run()
                    {
                        new Test().setVisible(true);
                    }
                });
    }
}